package com.ruoyi.vim.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.api.vo.Approval;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ApprovalMapper extends BaseMapper<Approval> {

    boolean adds(@Param("app") Approval approval);

    List<Approval> selectByuserId(Long userId);

    void updateByIds(@Param("app") Approval approval);

    List<Approval> selectAll();

    boolean deleteByid(Long id);

    void updates(Long id, Integer state);

    String selectId(Long id);

    List<Long> selectByValue(String value);

    List<Approval> selectBycarInfo(@Param("app") Approval approval);

    void updateEff(Long id);

    List<Approval> selectByCar(Approval approval);

    Approval selectByIds(Long id);

    List<Approval> selectByCare(String carId,Long userId);

    List<String> selectByUserId(Long userId);

    Set<String> selectByUserIds();

    List<Approval> selectByCars(String carId);
}
